<script>
    export let foo;
</script>

<button {foo} {...$$restProps}>click me</button>
